From: Florian Müllner Date: Tue, 5 Sep 2023 15:08:38 +0000 (+0200) Subject: status/backgroundApps: Filter out unknown apps X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~320^2^2~5 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2bc4215d1d04abc2e92de648d76eab05bd405bd7;p=gnome-shell.git status/backgroundApps: Filter out unknown apps While extremely rare, flatpak apps are not guaranteed to provide a .desktop file. We don't have anything to represent the app in that case, but at least we shouldn't break when trying to access properties on null, so filter out these entries. Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6913 Part-of: --- diff --git a/js/ui/status/backgroundApps.js b/js/ui/status/backgroundApps.js index d6f2e495b..fb457ae2d 100644 --- a/js/ui/status/backgroundApps.js +++ b/js/ui/status/backgroundApps.js @@ -226,6 +226,7 @@ class BackgroundAppsToggle extends QuickToggle { return {app, message}; }) + .filter(item => !!item.app) .sort((a, b) => { return a.app.get_name().localeCompare(b.app.get_name()); })